<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@page import="java.util.*"%>

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>删除购物车</title>
</head>
<body>
	<%
		Map<String, Integer> cart = (HashMap<String, Integer>) session.getAttribute("cart");
		
		String name = request.getParameter("name");
		if (cart != null) {
			cart.remove(name);
		}
		response.sendRedirect("show_cart.jsp");
	%>
</body>
</html>